package com.wl.wuliu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wl.wuliu.entity.Driver;
import com.wl.wuliu.result.AjaxResult;

import java.util.List;

/**
 * @Author: gutaozhen
 * @Date: 2024/5/15
 */
public interface DriverService extends IService<Driver> {

    /**
     * 列表查询
     * @param driver
     * @return
     */
    List<Driver> findList(Driver driver);

    /**
     * 保存司机信息
     * @param driver
     * @return
     */
    AjaxResult saveDriver(Driver driver);

    /**
     * 修改司机信息
     * @param driver
     * @return
     */
    AjaxResult updateDriver(Driver driver);

    /**
     * 删除司机信息
     * @param id
     * @return
     */
    AjaxResult deleteDriver(String id);

    /**
     * 根据id查询司机信息
     * @param id
     * @return
     */
    Driver getDriver(String id);

}
